|
|
|
|
|
|
|
Figure 7.5
High pass filters can greatly emphasize dithering effects. |
|
|
|
|
|
|
|
|
Edge detection operations are useful for identifying objects within an image. Once you have located the edges of the objects, you can use binary contrast enhancement to make the edges even more clearly defined. You can then use the edges in machine vision and other object identification systems. |
|
|
|
|
|
|
|
|
The SubEdge and SubEdge2 programs described in Chapter 6, Point Processes, enhance edges by shifting an image and subtracting the result from the original image. The two sections that follow describe ways you can use filters to enhance edges. |
|
|
|
|
|
|
|
|
Prewitt Gradient Edge Detection |
|
|
|
|
|
|
|
|
The Prewitt gradient edge detection technique uses a simple filter to enhance the edges of an image in a particular direction. For example, one Prewitt filter detects areas in which colors grow darker as you move through the image from the northwest corner toward the southeast corner. Figure 7.6 shows the Filter program using this kind of filter. |
|
|
|
|
|
|
|
|
Figure 7.6
Prewitt gradient edge detection filters
enhance edges in a particular direction. |
|
|
|
|
|